package org.jeecg.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 询单表
 * @Author: jeecg-boot
 * @Date: 2025-09-29
 * @Version: V1.0
 */
@Data
@TableName("oms_inquiry")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="oms_inquiry对象", description="询单表")
public class OmsInquiry implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**客户名称*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String customerName;
    
    /**客户电话*/
    @Excel(name = "客户电话", width = 15)
    @ApiModelProperty(value = "客户电话")
    private String customerPhone;
    
    /**收货地址*/
    @Excel(name = "收货地址", width = 30)
    @ApiModelProperty(value = "收货地址")
    private String deliveryAddress;
    
    /**物流信息：0-到付，1-寄付*/
    @Excel(name = "物流信息", width = 15, dicCode = "logistics_type")
    @Dict(dicCode = "logistics_type")
    @ApiModelProperty(value = "物流信息：0-到付，1-寄付")
    private Integer logisticsType;
    
    /**门类型：0-推拉，1-平开*/
    @Excel(name = "门类型", width = 15, dicCode = "door_type")
    @Dict(dicCode = "door_type")
    @ApiModelProperty(value = "门类型：0-推拉，1-平开")
    private Integer type;

    /**
     * 总价
     */
    @ApiModelProperty(value = "总价")
    @Excel(name = "总价", width = 15)
    private Double totalPrice;

    /**询单日期*/
    @Excel(name = "询单日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "询单日期")
    private Date inquiryDate;
    
    /**状态：0-待处理，1-已处理，2-已完成*/
    @Excel(name = "状态", width = 15, dicCode = "inquiry_status")
    @Dict(dicCode = "inquiry_status")
    @ApiModelProperty(value = "状态：0-待处理，1-已处理，2-已完成")
    private Integer status;
    
    /**备注*/
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    
    /**删除状态：0-正常，1-已删除*/
    @TableLogic
    @ApiModelProperty(value = "删除状态：0-正常，1-已删除")
    private Integer delFlag;
    
    /**询单明细列表*/
    @ApiModelProperty(value = "询单明细列表")
    @TableField(exist = false)
    private List<OmsInquiryItem> items;
}
